package net.sansi.v3correctserver.dto.correctresult;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import java.util.List;

/**
 * Created by Fang
 * create time : 2025/2/27
 * IDE : IntelliJ IDEA
 * <p>
 * 亮度矫正结果处理
 */

public class CorrectResultDto {

    @ApiModel("生成矫正系数请求")
    @Data
    @Accessors(chain = true)
    public static class GenFactorReq {

        @ApiModelProperty("矫正类型 1 亮度矫正 2 色度矫正")
        private Integer correctType;

        @ApiModelProperty("是否带亮暗线修复")
        private Boolean fixLine;

        @ApiModelProperty("是否为3系数")
        private Boolean is3Factor;

        @ApiModelProperty("系数类型 1 面板 CL, 2 扫描板 CF")
        private Integer factorType;

        @ApiModelProperty("是否直接上传系数")
        private Boolean isUpload;

    }

    @ApiModel("系数上传任务请求")
    @Data
    @Accessors(chain = true)
    public static class StartUploadFactorReq {

        @ApiModelProperty("系数类型 1 面板 CL, 2 扫描板 CF")
        private Integer factorType;

    }

    @ApiModel("系数固化任务请求")
    @Data
    @Accessors(chain = true)
    public static class StartSolidifyFactorReq {

        @ApiModelProperty("数据类型: BCORR, BLCORR")
        private String dataType;

        @ApiModelProperty("操作类型: RAM_TO_FLASH = 1\n" +
                "FLASH_TO_PANEL = 2\n" +
                "FLASH_TO_RAM = 3\n" +
                "PANEL_TO_RAM = 4")
        private Integer action;
    }
}
